package com.jz.partclass.model;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by WISE on 2021/12/27.
 */
@Data
public class PartAddVo<T> {

    @NotBlank(message = "备件名称不能为空")
    private String name;
    @NotBlank(message = "备件编码不能为空")
    private String code;

    @NotBlank(message = "备件小类编码不能为空")
    private String subCode;

    @NotBlank(message = "计划大类编码不能为空")
    private String planCode;

//    @NotBlank(message = "法人编码不能为空")
    private List<T> legalCode2;

    @NotNull(message = "状态不能为空")
    private boolean status;

//    @NotEmpty(message = "法人不能为空")
    private List<T> legalCodeList;

}
